home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xntp.idb / usr / freeware / src / xntp / xntp3-5.93b.diff.z / xntp3-5.93b.diff
Encoding:
Text File  |  1999-01-26  |  4.4 KB  |  139 lines

  1. diff -ur xntp3-5.93a/ChangeLog xntp3-5.93b/ChangeLog
  2. --- xntp3-5.93a/ChangeLog    Thu Apr 30 00:07:00 1998
  3. +++ xntp3-5.93b/ChangeLog    Tue May  5 20:43:55 1998
  4. @@ -1,3 +1,18 @@
  5. +Tue May  5 03:06:46 1998  Harlan Stenn  <stenn@whimsy.udel.edu>
  6. +
  7. +    * configure.in: 5.93b
  8. +
  9. +    * util/ntptime.c (main): Only clear modes if adjtimex is being used.
  10. +
  11. +    * xntpd/refclock_atom.c (atom_poll): Use LDISC_PPS if we're using PPS.
  12. +    * xntpd/refclock_jupiter.c: Declare extern int pps_enable;
  13. +    From: Per Hedeland <per@erix.ericsson.se>
  14. +
  15. +    * configure.in: Just use/look for adjtimex under Linux.
  16. +    * util/ntptime.c (ntp_gettime): Ditto.
  17. +    (main): Zero ntv.modes before calling ntp_gettime.
  18. +    From: Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
  19. +
  20.  Wed Apr 29 19:04:51 1998  Harlan Stenn  <stenn@whimsy.udel.edu>
  21.  
  22.      * configure.in: 5.93a
  23. diff -ur xntp3-5.93a/config.h.in xntp3-5.93b/config.h.in
  24. --- xntp3-5.93a/config.h.in    Fri Apr 24 20:12:51 1998
  25. +++ xntp3-5.93b/config.h.in    Tue May  5 03:37:25 1998
  26. @@ -426,9 +426,6 @@
  27.  /* Define if you have the __adjtimex function.  */
  28.  #undef HAVE___ADJTIMEX
  29.  
  30. -/* Define if you have the __ntp_gettime function.  */
  31. -#undef HAVE___NTP_GETTIME
  32. -
  33.  /* Define if you have the clock_settime function.  */
  34.  #undef HAVE_CLOCK_SETTIME
  35.  
  36. diff -ur xntp3-5.93a/configure.in xntp3-5.93b/configure.in
  37. --- xntp3-5.93a/configure.in    Wed Apr 29 23:33:18 1998
  38. +++ xntp3-5.93b/configure.in    Tue May  5 20:43:58 1998
  39. @@ -1,7 +1,7 @@
  40.  dnl -*-fundamental-*-
  41.  dnl Process this file with autoconf to produce a configure script.
  42.  AC_INIT(xntpd/ntp_refclock.c)
  43. -AM_INIT_AUTOMAKE(xntp3, 5.93a)
  44. +AM_INIT_AUTOMAKE(xntp3, 5.93b)
  45.  AC_CANONICAL_SYSTEM
  46.  AC_DEFINE_UNQUOTED(STR_SYSTEM, "$target")
  47.  AM_CONFIG_HEADER(config.h)
  48. @@ -404,7 +404,7 @@
  49.  
  50.  case "$target" in
  51.   *-*-linux*)
  52. -    AC_CHECK_FUNCS(__adjtimex __ntp_gettime)
  53. +    AC_CHECK_FUNCS(__adjtimex)
  54.      ;;
  55.  esac
  56.  AC_CHECK_FUNCS(clock_settime daemon getbootfile getdtablesize getrusage)
  57. @@ -963,8 +963,8 @@
  58.  
  59.  AC_CACHE_CHECK([availability of ntp_{adj,get}time()], ac_cv_var_ntp_syscalls,
  60.   [ac_cv_var_ntp_syscalls=no
  61. - case "$ac_cv_func___adjtimex$ac_cv_func___ntp_gettime" in
  62. -  yesyes)
  63. + case "$ac_cv_func___adjtimex" in
  64. +  yes)
  65.      ac_cv_var_ntp_syscalls=libc
  66.      ;;
  67.    *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
  68. Only in xntp3-5.93b/patches/done: 192
  69. Only in xntp3-5.93b/patches/inbox: 12
  70. diff -ur xntp3-5.93a/util/Makefile.in xntp3-5.93b/util/Makefile.in
  71. --- xntp3-5.93a/util/Makefile.in    Thu Apr 30 17:58:04 1998
  72. +++ xntp3-5.93b/util/Makefile.in    Tue May  5 21:12:26 1998
  73. @@ -326,7 +326,7 @@
  74.  jitter.o jitter.lo: jitter.c
  75.  kern.o kern.lo: kern.c
  76.  longsize.o longsize.lo: longsize.c
  77. -ntptime.o ntptime.lo: ntptime.c ../config.h
  78. +ntptime.o: ntptime.c ../config.h
  79.  precision.o precision.lo: precision.c ../include/ntp_unixtime.h \
  80.      ../include/ntp_types.h ../include/ntp_machine.h ../config.h \
  81.      ../include/ntp_proto.h
  82. diff -ur xntp3-5.93a/util/ntptime.c xntp3-5.93b/util/ntptime.c
  83. --- xntp3-5.93a/util/ntptime.c    Wed Sep 24 00:27:00 1997
  84. +++ xntp3-5.93b/util/ntptime.c    Tue May  5 21:08:48 1998
  85. @@ -40,6 +40,9 @@
  86.  #  endif
  87.  #  ifdef HAVE___ADJTIMEX
  88.  #   define ntp_adjtime(t)  __adjtimex((t))
  89. +/* Hack hack hack 1998-Apr-29  JSP */
  90. +#   define ntptimeval timex
  91. +#   define ntp_gettime __adjtimex
  92.  #  endif
  93.  # endif /* NOT NTP_SYSCALLS_STD */
  94.  #endif /* KERNEL_PLL */
  95. @@ -260,6 +263,9 @@
  96.    /*
  97.     * Fetch timekeeping data and display.
  98.     */
  99. +#ifdef HAVE___ADJTIMEX
  100. +  ntv.modes = 0;
  101. +#endif
  102.    status = ntp_gettime(&ntv);
  103.    if (status < 0)
  104.      perror("ntp_gettime() call fails");
  105. diff -ur xntp3-5.93a/xntpd/refclock_atom.c xntp3-5.93b/xntpd/refclock_atom.c
  106. --- xntp3-5.93a/xntpd/refclock_atom.c    Fri Apr 24 19:14:20 1998
  107. +++ xntp3-5.93b/xntpd/refclock_atom.c    Tue May  5 03:25:28 1998
  108. @@ -456,7 +456,12 @@
  109.               */
  110.              (void)sprintf(device, DEVICE, unit);
  111.              if (!(fd = refclock_open(device, SPEED232,
  112. -                 LDISC_CLKPPS))) {
  113. +#ifdef PPS
  114. +                         LDISC_PPS
  115. +#else
  116. +                         LDISC_CLKPPS
  117. +#endif
  118. +                         ))) {
  119.                  refclock_report(peer, CEVNT_FAULT);
  120.                  return;
  121.              }
  122. diff -ur xntp3-5.93a/xntpd/refclock_jupiter.c xntp3-5.93b/xntpd/refclock_jupiter.c
  123. --- xntp3-5.93a/xntpd/refclock_jupiter.c    Thu Mar  5 21:42:34 1998
  124. +++ xntp3-5.93b/xntpd/refclock_jupiter.c    Tue May  5 03:23:25 1998
  125. @@ -129,8 +129,12 @@
  126.   */
  127.  extern int debug;        /* global debug flag */
  128.  
  129. +#ifdef TIOCSPPS
  130. +extern int pps_enable
  131. +#endif
  132. +
  133.  /*
  134. - * Juptier unit control structure.
  135. + * Jupiter unit control structure.
  136.   */
  137.  struct jupiterunit {
  138.      u_int  pollcnt;            /* poll message counter */
  139.